package com.github.zxhTom.demo.jol;

import org.openjdk.jol.info.ClassLayout;

/**
 * @author 张新华
 * @version V1.0
 * @Package com.github.zxhTom.demo.jol
 * @date 2021/12/7 11:18
 */
public class ArrayStatus {
    public static void main(String[] args) {
        int[] array = new int[3];
        array[0] = 11;
        array[1] = 22;
        array[2] = 33;
        System.out.println( ClassLayout.parseInstance(array).toPrintable() );
        Integer _max = 256 * 256 * 256 * 256;
        Integer JMax = Integer.MAX_VALUE;
        System.out.println(_max);
        System.out.println(JMax);
        int[] test = new int[Integer.MAX_VALUE-2];
        Integer index =0;
        System.out.println( ClassLayout.parseInstance(test).toPrintable() );
        /*for (int i = 0; i < 256; i++) {
            for (int j = 0; j < 256; j++) {
                for (int k = 0; k < 256; k++) {
                    for (int m = 0; m < 256; m++) {
                        //test[index++]=1;
                    }
                }
            }
        }*/
    }
}
